#pragma once
#ifndef OBR_PLANEMESHLIGHTDATA_H
#define OBR_PLANEMESHLIGHTDATA_H

#include "../DScommon.h"

namespace OBR
{
struct PlaneMeshLightData
{
    float3 normal_world; // identifies the facing direction
    float3 corner; // identifies one of the corners
    float3 U, V;   // identifies the square sides
    float area;    // used to compute light PDF
    OBR::Spectrum radiance;
    Matrix4x4f l2w;
    Matrix4x4f w2l;
};
} // namespace OBR

#endif
